package com.example.boot.dlgoodsss.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.example.boot.dlgoodsss.model.DlGoodsSs;

public interface DlGoodsSsMapper {
	int deleteByPrimaryKey(String id);

	int insert(DlGoodsSs record);

	int insertSelective(DlGoodsSs record);

	DlGoodsSs selectByPrimaryKey(String id);

	int updateByPrimaryKeySelective(DlGoodsSs record);

	int updateByPrimaryKey(DlGoodsSs record);

	/**
	 * 根据商品Id查找规格
	 * 
	 * @param goodsId
	 * @return
	 * @throws Exception
	 */
	List<String> byGoodsIdFindSsGg(String goodsId) throws Exception;

	/**
	 * 根据规格查找所有的下级参数
	 * 
	 * @param id
	 * @return
	 */
	List<DlGoodsSs> findAllGoodsSs(@Param("sssName")String sssName);

}